import { createRouter, createWebHistory, useRouter } from 'vue-router'
import IndexView from '../views/IndexView.vue'
import ClothesSearch from '../views/ClothesSearch.vue'
import ClothesInfo from '../views/ClothesInfo.vue'



const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      component: IndexView,
    },
    {
      path: '/detail/:keyword',
      name: 'detail',
      component: ClothesSearch
    },
    {
      path: '/clothes/:id',
      name: 'ClothesInfo',
      component: ClothesInfo
    },
  ],
})

export default router
